<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@page import="com.neusoft.bean.Student"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.neusoft.dao.StuDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>从数据库获取学生信息</title>
</head>
<body>
<%
			request.setCharacterEncoding("utf-8");
			StuDao dao = new StuDao();
			ArrayList<Student> stu = dao.getAll();
			request.setAttribute("stu", stu);	
		%>
	<table>
		<caption>个人信息显示</caption>
		<tr>
			<th>学号</th><th>姓名</th><th>性别</th><th>年龄</th><th>班级</th>
		</tr>
		<c:forEach items="${resquestScope.stu }" var="stu1">
			<c:out value="${stu.stuName}"></c:out>
		</c:forEach>
	</table>
	
</body>
</html>